<?php
/**
 * Created by PhpStorm.
 * User: 柳迪
 * Date: 2018/4/25
 * Time: 13:41
 */

namespace app\index\validate;
use think\Validate;


class User extends Validate
{
    protected $rule=[
      'uname' =>'require|max:30|min:6',
      'nickname'=>'require|max:50|min:6',
      'password'=>'require|min:6|max:20',
    ];

    protected $message=[
      'uname.require'=>'uname must be required',
      'uname.max'=>'uname must under 30 Letter',
        'uname.min'=>'uname must at least 6 Letter',
        'nickname.require'=>'nickname must be required',
      'nickname.max'=>'nickname must under 50 Letter',
        'nickname.min'=>'nickname must at least 6 Letter',
        'password.require'=>'password must be required',
        'password.max'=>'password must under 20 Letter',
        'password.min'=>'password must at least 6 Letter',
    ];
}